load("@rules_proto//proto:defs.bzl", "proto_library")
load("@rules_cc//cc:defs.bzl", "cc_proto_library")
#参考文档：https://bazel.google.cn/versions/7.3.0/reference/be/c-cpp?hl=zh-cn#cc_proto_library
proto_library(
    name = "person_proto",
    srcs = ["person.proto"],
)

cc_proto_library(
    name = "person_cc_proto",
    deps = [":person_proto"],
    visibility = ["//visibility:public"],  # 允许所有目标访问
)